package com.nhncorp.yammer.bean;

import java.util.ArrayList;
import java.util.List;

import com.nhncorp.yammer.util.Datetime;

public class Post {
	private int postKey;
	private final String content;
	private final String userId;
	private final Datetime createDate;
	private final PostType postType;
	private List<Integer> commentKeyList = new ArrayList<Integer>();

	public Post(int postKey, String content, String userId, Datetime createDate, PostType postType, List<Integer> commentKeyList) {
		this.postKey = postKey;
		this.content = content;
		this.userId = userId;
		this.createDate = createDate;
		this.postType = postType;
		if (null != commentKeyList) {
			this.commentKeyList = commentKeyList;
		}
	}

	public int getPostKey() {
		return postKey;
	}

	public String getContent() {
		return content;
	}

	public String getUserId() {
		return userId;
	}

	public Datetime getCreateDate() {
		return createDate;
	}

	public PostType getPostType() {
		return postType;
	}

	public List<Integer> getCommentKeyList() {
		return commentKeyList;
	}

	public void setPostKey(int postKey) {
		this.postKey = postKey;
	}

	public void addCommentKey(int commentKey) {
		commentKeyList.add(commentKey);
	}
}
